package com.pocketsweet.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;

@AVClassName("MLShare")
public class MLShare extends AVObject {
	public static String TYPE = "type";// 分享的类型
	public static String USER = "user";// 分享的用户
	public static String OBJECT = "object";// 分享的对象
	public static String TARGET = "target";// 分享的目标

	public MLShare() {

	}

	// 分享类型
	public int getType() {
		return super.getInt(TYPE);
	}

	public void setType(int value) {
		super.put(TYPE, value);
	}

	// 分享的用户（外键1:1）
	public MLUser getUser() {
		return (MLUser) super.getAVUser(USER);
	}

	public void setUser(MLUser user) {
		super.put(USER, user);
	}

	// 评论的对象（外键1:1）
	public AVObject getObject() {
		return (MLArticle) super.getAVObject(OBJECT);
	}

	public void setObject(AVObject value) {
		super.put(OBJECT, value);
	}

	// 分享的目标
	public String getTarget() {
		return super.getString(TARGET);
	}

	public void setTarget(String value) {
		super.put(TARGET, value);
	}
}
